class CookieFormat:
    def __init__(self, cookie):
        pass

    @staticmethod
    def cookie_to_dick(cookie):
        """
        将 cookie 解析成字典格式
        :param cookie:
        :return:
        """
        cookies_dict = {}
        for item in cookie.split('; '):
            key, value = item.split('=', 1)  # 以第一个等号分割
            cookies_dict[key] = value

        return cookies_dict